#!/usr/bin/env php
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: yunwuxin <448901948@qq.com>
// +----------------------------------------------------------------------

namespace think;

// 加载基础文件
require __DIR__ . '/thinkphp/base.php';

//定义环境，用于区别线上和开发环境，方便切换
define('SERVER_ENV',strtoupper(str_replace('.','_','dev.tmfac')).'_');

//天马工场 model前缀
define('TM_PREFIX','tm_');

$tmlab_is_docker = 0;  //0表示普通环境，1表示docker环境

define('TMLAB_IS_DOCKER',$tmlab_is_docker);
define('ENV_LOCAL',$tmlab_is_docker==1?"env/":"");
// 应用初始化
Container::get('app')->path(__DIR__ . '/application/')->initialize();

// 控制台初始化
Console::init();